/**
 * FileName: BasePaginationQuery
 * Author: TangZaoBang
 * Date: 2023/04/29 13:24
 * Description:
 * <p>
 * History:
 * <author> TangZaoBang
 * <time> 2023/04/29 13:24
 * <version> 1.0.0
 * <desc> 版本描述
 */

package com.bosssoft.quickstart.demo.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @Class BasePaginationQuery
 * @Description BasePaginationQuery考虑封装查询所使用的分页参数。
 * @Author TangZaoBang
 * @Date 2023/04/29 13:24
 * @Version
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@ApiModel("用户查询参数类")
public  abstract class BasePaginationQuery {
    /**
     *  查询第几页的数据
     */
    @ApiModelProperty("查询的页面索引")
    @NotNull(message = "pageIndex不能为空")
    private Integer pageIndex;
    /**
     * 每页的记录数
     */
    @ApiModelProperty("单页记录数")
    @NotNull(message = "pageSize 不能为空")
    private Integer pageSize;
}
